package org.example.commerce.imp.service;

import com.github.pagehelper.PageInfo;
import org.example.commerce.api.beans.CreateNewGoodsParam;
import org.example.commerce.api.beans.ModifyGoodsParam;
import org.example.commerce.api.beans.OrderParam;
import org.example.commerce.dao.entity.Goods;
import org.example.commerce.dao.vo.ProduceWithCategoryVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

public interface GoodsService {

    PageInfo<ProduceWithCategoryVo> selectAll(Integer page, Integer pageSize);

    Goods updateGoods(ModifyGoodsParam request);

    Goods addGoods(CreateNewGoodsParam request);

    String deleteGoodsById(Long id);

    Goods selectGoodsById(Long id);

    List<Goods>loadGoods(List<Long> ids);
}
